package com.lagou.service;

import com.lagou.domain.Course;
import com.lagou.domain.CourseVO;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface CourseService {

    /*多条件查询*/
    public List<Course> findCourseByConditioin(CourseVO courseVO);

    /*添加课程及讲师信息*/
    public void saveCourseOrTeacher(CourseVO courseVO) throws InvocationTargetException, IllegalAccessException;

    /*回显课程信息(根据id查询对应的课程信息及关联的讲师信息)*/
    public CourseVO findCourseById(Integer id);

    /*修改课程状态*/
    public void updateCourseStatus(Integer id,Integer status);

    /*修改课程及讲师信息*/
    public void updateCourseOrTeacher(CourseVO courseVO) throws InvocationTargetException, IllegalAccessException;
}
